package com.woniu40.petai_user.entity;

import java.math.BigDecimal;

public class Cart {
    private Integer cartId;
    private Integer goodsId;
    private Integer userId;
    private String goodsName;
    private BigDecimal salePrice;
    private Integer buyCount;
    private BigDecimal allPrice;
    private Integer colorId;
    private Integer tasteId;
    private Integer sizeId;
    private String cover;

    public Cart() {
    }

    public Cart(Integer cartId, Integer goodsId, Integer userId, String goodsName, BigDecimal salePrice, Integer buyCount, BigDecimal allPrice, Integer colorId, Integer tasteId, Integer sizeId, String cover) {
        this.cartId = cartId;
        this.goodsId = goodsId;
        this.userId = userId;
        this.goodsName = goodsName;
        this.salePrice = salePrice;
        this.buyCount = buyCount;
        this.allPrice = allPrice;
        this.colorId = colorId;
        this.tasteId = tasteId;
        this.sizeId = sizeId;
        this.cover = cover;
    }

    public Integer getCartId() {
        return cartId;
    }

    public void setCartId(Integer cartId) {
        this.cartId = cartId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public BigDecimal getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(BigDecimal salePrice) {
        this.salePrice = salePrice;
    }

    public Integer getBuyCount() {
        return buyCount;
    }

    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    public BigDecimal getAllPrice() {
        return allPrice;
    }

    public void setAllPrice(BigDecimal allPrice) {
        this.allPrice = allPrice;
    }

    public Integer getColorId() {
        return colorId;
    }

    public void setColorId(Integer colorId) {
        this.colorId = colorId;
    }

    public Integer getTasteId() {
        return tasteId;
    }

    public void setTasteId(Integer tasteId) {
        this.tasteId = tasteId;
    }

    public Integer getSizeId() {
        return sizeId;
    }

    public void setSizeId(Integer sizeId) {
        this.sizeId = sizeId;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return "Cart{" +
                "cartId=" + cartId +
                ", goodsId=" + goodsId +
                ", userId=" + userId +
                ", goodsName='" + goodsName + '\'' +
                ", salePrice=" + salePrice +
                ", buyCount=" + buyCount +
                ", allPrice=" + allPrice +
                ", colorId=" + colorId +
                ", tasteId=" + tasteId +
                ", sizeId=" + sizeId +
                ", cover='" + cover + '\'' +
                '}';
    }
}
